import QtQuick 2.0
import "./Components"
import "../../../customqml"
Rectangle{
    Loader{
        id:animLoader
        anchors.centerIn: parent
        anchors.fill: parent
    }
    NormalBtn{
        x:220
        y:100
        id:anim_test_1
        text: "动画1"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/FluidElementsSub/QmlAnimation_Test1.qml"
                }
            }
        }
    }
    NormalBtn{
        x:320
        y:100
        id:anim_test_2
        text: "动画2"
        MouseArea{
            anchors.fill: parent
            acceptedButtons: Qt.LeftButton
            onClicked: {
                if(mouse.button===Qt.LeftButton)
                {
                    animLoader.source="/qml/main/QmlInBookMain/FluidElementsSub/QmlAnimation_Test2.qml"
                }
            }
        }
    }
}


